#include "../include/dexgel/window.hpp"
#include "../include/dexgel/windowimpl.hpp"

namespace dexgel
{



Window::Window( int xres, int yres, const std::string& Title )
{
	myWindow = priv::WindowImpl::New(xres,yres,Title);
}

Window::~Window()
{
	delete myWindow;
}

void Window::UpdateMessages()
{
	myWindow->UpdateMessages();
}

bool Window::IsOpened()
{
	return myWindow->IsOpened();
}

Rendrer* Window::getRendrer()
{
	return myWindow->getRendrer();
}

int Window::getMouseX()
{
	return myWindow->getMouseX();
}
int Window::getMouseY()
{
	return myWindow->getMouseY();
}

bool Window::keyDown( int key )
{
	return myWindow->keydown[key];
}


bool Window::mouseDown( )
{
	return myWindow->mouseDown();
}

double Window::getTime()
{
	return myWindow->getTime();
}

bool Window::canRender()
{
	return myWindow->canRender;
}




}